package cn.com.stary1993.kite.captcha.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 验证码配置
 *
 * @author stary1993
 */
@Data
@ConfigurationProperties(prefix = CaptchaProperties.PREFIX)
public class CaptchaProperties {

    public static final String PREFIX = "captcha";

    public static final String SIMPLE = "simple";

    public static final String BEHAVIOR = "behavior";

    /**
     * 是否开启
     */
    private Boolean enabled = true;

    /**
     * 默认前缀
     */
    private String prefix = PREFIX;

    /**
     * 普通图形验证码
     */
    private SimpleImageCaptchaProperties simple;

    /**
     * 行为图形验证码
     */
    private BehaviorImageCaptchaProperties behavior;

}
